/*!
\file GraphAlgorithmCombination.cpp
\brief Contains implementation of GraphAlgorithmCombination.
\ingroup GUI
*/

#include"GraphAlgorithmCombination.h" 

GraphAlgorithmCombination::GraphAlgorithmCombination(QWidget *parent): QDockWidget(parent){
	m_widget = new QWidget(this);
	setWidget(m_widget);
	
	m_layout = new QVBoxLayout(m_widget);
	m_widget->setLayout(m_layout);
	m_labelAlgorithm = new QLabel(m_widget);
	m_layout->addWidget(m_labelAlgorithm);
	m_labelGraph = new QLabel(m_widget);
	m_layout->addWidget(m_labelGraph);
	m_button = new QPushButton( "Show!", m_widget );
	m_layout->addWidget(m_button);
	connect( m_button, SIGNAL(clicked()), this, SLOT(clickedButton()) );
}

void GraphAlgorithmCombination::setAlgorithm( QString name ){
	m_labelAlgorithm->setText(name);
}

void GraphAlgorithmCombination::setGraph( QPixmap p ){
	m_labelGraph->setPixmap(p);
}

void GraphAlgorithmCombination::clickedButton(){
	emit buttonClicked();
}